
package com.probiz.estore.system.service;

import java.util.Map;

import com.probiz.estore.common.model.system.CompanyInfo;
import com.probiz.estore.common.model.system.SystemConfig;
import com.probiz.estore.core.service.GenericManager;

/**
 * Business Delegate (Proxy) Interface to handle communication between web and
 * persistence layer.
 * 
 * <p>
 * <a href="UserManager.java.html"> <i>View Source </i> </a>
 * </p>
 * 
 * @author <a href="mailto:r.so@sympatico.ca">Richard Che So </a>*
 * @author <a href="mailto:r.so@sympatico.ca">Richard Che So </a>
 */
public interface SystemConfigManager extends GenericManager<SystemConfig> {

	CompanyInfo getCompanyInfo();

	/**
	 * -------已配置缓存-----
	 * 获得网店所有配置属性
	 * @return
	 */
	public Map<String,String> getConfigMap();
	/**
	 * -------没有配置缓存-----
	 * 获得网店所有配置属性
	 * @return
	 */
	public Map<String,String> getConfigMapNoCache();

	SystemConfig getConfigByKey(String configKey);

	void saveConfigByKey(String configKey, String configVal);
}
